Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HTTP methods to router map #26

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

amt925
Copy link

@amt925 amt925 commented Aug 25, 2020

This changes the map() method's $args array parameter to a $method string parameter containing a piped string of the 5 HTTP methods (GET|POST|PATCH|PUT|DELETE) to match AltoRouter https://altorouter.com/usage/mapping-routes.html.

The $args parameter did not do anything that I can see which is the reason it was removed.

This may look like a large change but it is mostly PSR-12 formatting.

jarednova added a commit that referenced this pull request Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant